home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000098_news@newsmaster….columbia.edu _Wed Jul 23 15:49:46 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA29736
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 23 Jul 1997 15:49:45 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA14389
for kermit.misc@watsun; Wed, 23 Jul 1997 15:49:45 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: \fFiles()
Date: 23 Jul 1997 19:49:41 GMT
Organization: Columbia University
Lines: 38
Message-ID: <5r5n8l$s6j$1@apakabar.cc.columbia.edu>
References: <1997Jul22.190800@merlin.ecid.cig.mot.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Keywords: \fFiles()
Xref: news.columbia.edu comp.protocols.kermit.misc:7376
In article <1997Jul22.190800@merlin.ecid.cig.mot.com>,
Robert Cornell <cornellr@merlin.ecid.cig.mot.com> wrote:
: I have been pulling my hair out trying to evaluate whether a file is a
: file or a directory.
: I think I've now got it down...
:
You might have tried:
IF DIRECTORY xxx <command>
Executes the <command> if xxx is a directory.
: [/home/cornellr] C-Kermit>mkdir dummy
: [/home/cornellr] C-Kermit>echo \fFiles(dummy/*)
: 0
: [/home/cornellr] C-Kermit>echo \fFiles(dummy/.*)
: 2
:
: Can I safely assume this is a feature and that the fact that * dosen't match
: . and .. is because:
:
: [/home/cornellr] C-Kermit>echo \fFiles(*)
: 27
: [/home/cornellr] C-Kermit>echo \fFiles(.*)
: 40
:
: i.e. you don't want to see hidden(?) files.
:
Right -- in UNIX, Kermit behaves as much as possible like the shell in this
regard. If you want to see hidden files you have to mention the dot.
: Further, how can I tell if its a directory/character special/link if I
: haven't got read permissions on it (without using shell).
:
C-Kermit is a cross-platform program, not just a UNIX one. It doesn't go
quite that far in distinguishing among weird UNIX filetypes.
- Frank